package com.quickboot.generate.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.quickboot.generate.entity.GenTableColumn;
import com.quickboot.generate.mapper.GenTableColumnMapper;
import com.quickboot.generate.service.GenTableColumnService;
import com.quickboot.generate.vo.GenTableColumnVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 代码生成-字段 接口实现类
 *
 * @author Tellsea
 * @date 2022-11-25
 */
@Service
public class GenTableColumnServiceImpl extends ServiceImpl<GenTableColumnMapper, GenTableColumn> implements GenTableColumnService {

    @Override
    public Page<GenTableColumnVo> queryList(Page page, GenTableColumnVo entity) {
        return this.baseMapper.queryList(page, entity);
    }

    @Override
    public GenTableColumnVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }

    @Override
    public List<GenTableColumnVo> queryByStructure(String tableName) {
        return this.baseMapper.queryByStructure(tableName);
    }
}
